<font color="blue" size="13px"></font>
<?



function enviarmail(){
$mailf = new PHPMailer();
$mailf->IsSMTP();
$mailf->SMTPAuth = true;
/*
//$mailf->SMTPSecure = "ssl";
// $mailf->Host = SMTP_HOST; // SMTP servers
//$mailf->Port = SMTP_PORT; 
$mailf->Mailer = "smtp"; 
$mailf->Host = "mail.healthsolution.com.ar";
//$mailf->Host = "ssl://smtp.gmail.com";
$mailf->Port = 465;
$mailf->Username = "info@healthsolution.com.ar";
$mailf->Password = "health";
///
$mailf->SMTPKeepAlive = true;  
$mailf->From = ("info@healthsolution.com.ar");
$mailf->FromName = "Contacto ";
$mailf->Subject = "Consulta";
$mailf->AltBody = "Consulta\nxxxx.";
*/

$mailf->SMTPSecure = "ssl";
 //$mailf->Host = SMTP_HOST; // SMTP servers
 //$mailf->Port = SMTP_PORT; 
$mailf->Mailer = "smtp"; 
$mailf->Host = "smtp.gmail.com";
//$mailf->Host = "ssl://smtp.gmail.com";//23-7-12
$mailf->Port = 465;
$mailf->Username = "healthsolutionargentina@gmail.com";
$mailf->Password = "fabiohernan";
///
$mailf->SMTPKeepAlive = true;  
$mailf->From = "healthsolutionargentina@gmail.com";
$mailf->FromName = "Health Solution ";
$mailf->Subject = "Atencion: Consulta";
$mailf->AltBody = "Consulta\nxxxx.";
$mailf->Timeout=20; //23-7-12

//$body="Hola, te doy mi nuevo numero<br><b>xxxx</b>.";

 //$mailf->Body ="Hola, te doy mi nuevo numero<br><b>xxxx</b>.";
 
  if (isset($_POST['Empresa'])!=null)
    {
         echo $Bodyhtml="
             <font color='blue' size='4px'>
                Nombre: ".$_POST['Nombre']."<br/>
                Apellido: ".$_POST['Apellido']."<br/>        
                Empresa: ".$_POST['Empresa']."<br/>                
                Mail: ".$_POST['Mail']."<br/>
                Consulta: ".$_POST['Consulta']."<br/>
            </font>
            ";
    }else
    {
         echo $Bodyhtml="
         <font color='blue' size='4px'>
            Nombre: ".$_POST['Nombre']."<br/>
            Apellido: ".$_POST['Apellido']."<br/>                    
            Mail: ".$_POST['Mail']."<br/>
            Consulta: ".$_POST['Consulta']."<br/>
        </font>
        ";
        
    }


 $mailf->MsgHTML($Bodyhtml);
 
  //mailf->WordWrap = 50;  
//$mail->MsgHTML("Hola, te doy mi nuevo numero<br><b>xxxx</b>.");
//$mail->AddAttachment("files/files.zip");
//$mail->AddAttachment("files/img03.jpg");
 

 $mailf->AddAddress("info@healthsolution.com.ar","Consulta");
 

//$mailf->AddAddress("hernan.zbucki@gmail.com","iFood"); 
 /*)$mailf->AddAddress("fabio.dellarosa@gmail.com", "iFood");
*/

$mailf->IsHTML(true);

	if(!$mailf->Send()) 
	{
	  echo "Error: " . $mailf->ErrorInfo;
	} else 
	{
	  echo "Mensaje enviado correctamente";
	}
}
?>